Skip to content

feat: Add demo logs#113

Merged
nw-sentry merged 4 commits intomasterfrom
antonis/add-logs
Mar 19, 2026
Merged

feat: Add demo logs#113
nw-sentry merged 4 commits intomasterfrom
antonis/add-logs

Conversation

@antonis
Copy link
Collaborator

@antonis antonis commented Dec 17, 2025

Fixes #109

This PR adds logging throughout the application using Sentry's new logs feature.

Types of Logs Added

1. Application Lifecycle Logs

  • App initialization with customer type, email, and version
  • Navigation container ready events

2. Screen View Logs

  • Home screen viewed
  • Product detail viewed (with product ID, title, price)
  • Cart screen viewed (with item count, total items, total value)

3. User Action Logs

  • Product Interactions:

    • Product card pressed (with product details)
    • Products loaded (with product count)
    • Product detail viewed
  • Cart Operations:

    • Items added to cart (from product cards and detail screens)
    • Items removed from cart
    • Cart calculations ("Calculated itemsInCart: X")
    • Quantity updates ("Adding quantity: X")
    • Cart total calculations
  • Checkout Flow:

    • Checkout initiated
    • Checkout span with trace/span IDs and attributes
    • Checkout called with cart (detailed cart contents)
    • Checkout request sent
    • Checkout completed successfully
    • Checkout failures with error details

4. Navigation Logs

  • Navigation to checkout
  • Navigation container ready

5. Error & Debug Logs

  • Product loading errors (with endpoint and error details)
  • Checkout request failures (with error messages)
  • Checkout failures (with status codes and error messages)
  • API call debug logs (with endpoints and request details)

6. User Feedback Logs

  • User feedback modal opened
  • User feedback submitted (with event ID and message length)

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add More Logs

4 participants